package com.imooc.dto.address;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

/**
 * @ClassName: AddressDto
 * @Description: 用户收货地址DTO
 * @author: limingxing
 * @Date: 2019-12-25 10:45
 */
@Data
@ApiModel(value = "用户收货地址DTO")
public class AddressDto {

    @ApiModelProperty(value = "地址主键id")
    private String id;

    @ApiModelProperty(value = "关联用户id")
    private String userId;

    @ApiModelProperty(value = "收件人姓名")
    private String receiver;

    @ApiModelProperty(value = "收件人手机号")
    private String mobile;

    @ApiModelProperty(value = "省份")
    private String province;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "区县")
    private String district;

    @ApiModelProperty(value = "详细地址")
    private String detail;

    @ApiModelProperty(value = "是否默认地址 1:是  0:否")
    private Integer isDefault;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

}
